package models.mapper;

import java.util.List;

import models.DrBroadcast;
import models.DrBroadcastExample;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface DrBroadcastMapper {
    int countByExample(DrBroadcastExample example);

    int deleteByExample(DrBroadcastExample example);

    int deleteByPrimaryKey(String id);

    int insert(DrBroadcast record);

    int insertSelective(DrBroadcast record);

    List<DrBroadcast> selectByExample(DrBroadcastExample example);

    DrBroadcast selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") DrBroadcast record, @Param("example") DrBroadcastExample example);

    int updateByExample(@Param("record") DrBroadcast record, @Param("example") DrBroadcastExample example);

    int updateByPrimaryKeySelective(DrBroadcast record);

    int updateByPrimaryKey(DrBroadcast record);
    
	List<DrBroadcast> getTitleList(@Param("operatorid")String operatorid);
	/**
	 * 根据id查找内容
	 * @param id
	 * @return
	 */
	@Select("select content,tone,speed from dr_broadcast where id=#{id}")
	DrBroadcast getContentById(String id);
}